package thread;

import java.util.Scanner;

public class SleepDemo {
    public static void main(String[] args) {
        System.out.println("start");
        Scanner sc=new Scanner(System.in);
        int x=sc.nextInt();

        Thread thread = new Thread();
        do {
            try {
                System.out.println(x);
                thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }while(x-->0);

        System.out.println("finish");
    }
}
